-
Notifications
You must be signed in to change notification settings - Fork 278
🐛 correction of issue #2617 selected fixed subnet not applied #2639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Hi @nonowheels63. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
2fa0333
to
0dcc046
Compare
/ok-to-test |
b50c804
to
d363b1e
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
@bnallapeta: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits. I'd prefer if you fixed the first one. Let me know if you do and I'll put my lgtm straight back.
/lgtm
serverPort.Network = &infrav1.NetworkParam{ | ||
ID: &openStackCluster.Status.Network.ID, | ||
} | ||
if len(fixedIPs) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary if
. You can execute the line below unconditionally.
@@ -520,21 +520,38 @@ func openStackMachineSpecToOpenStackServerSpec(openStackMachineSpec *infrav1.Ope | |||
if len(openStackMachineSpec.Ports) == 0 { | |||
serverPorts = make([]infrav1.PortOpts, 1) | |||
} | |||
|
|||
var fixedIPs []infrav1.FixedIP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Could we rename this to defaultSubnets
or clusterSubnets
or something more indicative of what it is? The generic name made this harder for me to read.
What this PR does / why we need it:
This PR enable the usage of a provided subnet when it is provided. At first the provided network wasn't used when the there where multiple subnet attached to the network, one random subnet was used (the first returned by the api).
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2617
Special notes for your reviewer:
This PR is related to #2624.
I don't know if i have to close the last PR ?!
TODOs:
/hold